package com.stylefeng.guns.modular.system.warpper;

import com.stylefeng.guns.core.base.warpper.BaseControllerWarpper;
import com.stylefeng.guns.core.common.constant.factory.ConstantFactory;

import java.util.List;
import java.util.Map;

/**
 * 部门列表的包装
 *
 * @author fengshuonan
 * @date 2017年4月25日 18:10:31
 */
public class PostWarpper extends BaseControllerWarpper {
    
    public PostWarpper(List<Map<String, Object>> list) {
        super(list);
    }
    
    @Override
    public void warpTheMap(Map<String, Object> map) {
        map.put("soName", ConstantFactory.me().getOrgName((Integer)map.get("soId")));
        map.put("spPName", ConstantFactory.me().getPostName((Integer)map.get("spPid")));
        map.put("spOrgName", ConstantFactory.me().getOrgName((Integer)map.get("spOrgId")));
      
    }

}
